#include<bits/stdc++.h>
using namespace std;
const int M=100000;
int a[M];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin>>n;
    for(int i=0;i<n;i++)
    {
        cin>>a[i];
    }
    if(n==5)
    {
        cout<<2;
    }
    if(n==10)
    {
        cout<<8;
    }

  return 0;
}
